Skip to content

Conversation

tristeng
Copy link

Supports all types of GeoJSON fields and querying using the $geoWithin, $geoIntersects, and $near operators. Allows the developer to use the handy Django operator syntax: e.g.:
SomeModel.objects.filter(location__near=Point((0, 0)))

Requires GDAL to be installed and a recent-ish version of MongoDB (> 2.6). I've only added support for the newer 2dsphere-index supported operators.

See the tests.gis module for examples of querying

@tristeng
Copy link
Author

Hmmm...only tested this with the nonrel-1.6 branch of Django. I'll get it working for 1.5 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant